package com.note.simpleshop.module.user.controller;

import com.note.simpleshop.module.user.auth.RequestToken;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestController {
    @ApiOperation(value = "test", notes = "test")

    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "token", required = true, paramType = "header")
    })
    @RequestMapping(value = "get", method = RequestMethod.POST)
    @RequestToken

    public String getToken() {
        return "test";
    }
}